#ifndef LOGIN_REGISTER_LOGIC_H
#define LOGIN_REGISTER_LOGIC_H

#include <QObject>
#include "PptpClient.h"
#include "PptpMessage.h"
#include "PptpSocket.h"
#include "UserSession.h"
#include "jkj_ui.h"
#include "jkj_ui_logic.h"
#include "login_register_ui.h"

class LoginRegisterLogic : public QObject
{
    Q_OBJECT

public:
    explicit LoginRegisterLogic(LoginRegisterUi *ui, QObject *parent = nullptr);

private slots:
    void onLoginClicked();
    void onRegisterClicked();
    void onForgotPasswordClicked();
    void Loginfunction(PptpMessage responseMessage);
    void Registerfunction(PptpMessage responseMessage);

private:
    LoginRegisterUi *ui; // 指向 UI 的指针
    PptpClient pptpclient;
    PptpMessage requestMessage;
};

#endif // LOGIN_REGISTER_LOGIC_H
